﻿@model LAVAA.WEB.Models.ActivityView
@{
    ViewBag.Title = "Editera ny aktivitet";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <fieldset>
        <legend>Formulär</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.Activity.Comment)
                @Html.TextBoxFor(m => m.Activity.Comment)
            </li>
            <li>
                @Html.LabelFor(m => m.Activity.DurationInMinutes)
                @Html.TextBoxFor(m => m.Activity.DurationInMinutes)
            </li>
            <li>
                @Html.DropDownListFor(m => m.Activity.ActivityType.Id, Model.ActivityTypes)
            </li>
          </ol>
        <input type="submit" value="Spara" />
    </fieldset>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}